.app-container {
  min-height: 100vh;
  background: #f5f5f5;
  position: relative;
  padding-bottom: 56px; /* 添加底部padding，为标签栏留出空间 */
}

.app-content {
  min-height: calc(100vh - 56px); /* 减去标签栏的高度 */
  padding-bottom: env(safe-area-inset-bottom);
}

/* 基础样式重置 */
body {
  margin: 0;
  padding: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* 防止水平滚动 */
}

* {
  box-sizing: border-box;
}

.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.app-content {
  flex: 1;
  overflow: auto;
  padding-bottom: var(--adm-safe-area-inset-bottom);
}

.app-tabbar {
  flex-shrink: 0;
  border-top: solid 1px var(--adm-color-border);
  background: white;
  height: calc(50px + var(--adm-safe-area-inset-bottom));
  padding-bottom: var(--adm-safe-area-inset-bottom);
}

/* 确保内容区域不会被底部标签栏遮挡 */
.adm-tab-bar {
  position: relative;
  z-index: 100;
}

.adm-tab-bar-item {
  font-size: 12px;
  touch-action: none;
}

.adm-tab-bar-item-title {
  margin-top: 2px;
}

/* 确保页面内容不会被TabBar遮挡 */
body {
  padding-bottom: env(safe-area-inset-bottom);
  margin: 0;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
}
